package com.cntcdt.api.service;

import com.cntcdt.api.db.model.ReturnCdbOperateModel;

public interface ReturnCdbOperateService {
	
	/**
	 * 根据充电宝号查询数据
	 * @param cdb
	 * @return
	 */
	public ReturnCdbOperateModel findByCDB(String cdb);
	
	/**
	 * 根据租借记录id查询数据
	 * @param checkHisotryId
	 * @return
	 */
	public ReturnCdbOperateModel findByCheckHistoryId(int checkHisotryId);
	
	/**
	 * 根据id查询数据
	 * @param id
	 * @return
	 */
	public ReturnCdbOperateModel findById(int id);
	
	/**
	 * 更新一条数据
	 * @param returnCdbOperate
	 * @return
	 */
	public boolean updateModel(ReturnCdbOperateModel returnCdbOperate);
}
